package root.electronclass.electronclass.common.util;

import android.content.Context;
import android.os.Looper;
import android.widget.Toast;

/**
 * Created by caofengcheng on 6/20/21.
 */
public class ToastUtil {
    public static void showToast(Context context,String text){
        new Thread(() -> {
            Looper.prepare();
            Toast.makeText(context,text,Toast.LENGTH_SHORT).show();
            Looper.loop();
        }).start();

    }
}
